<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8" name="viewport" content="width=device-width,initial-scale=1.0">
    <title>后台管理页面</title>
</head>
<body style="background-color:rgb(199,237,204)">

    <div align="center" width="50%">
        <p><a th:href="@{/admin/addWeb}">添加网站</a></p>
    </div>
    <div align="center" width="50%">
        <p><a th:href="@{/admin/findNovel}">查看小说列表</a></p>
    </div>
    <div align="center" width="50%">
        <p bgcolor="#EEEEEE"><span th:text="'已有网站：'" ></span></p>
    </div>
    <hr />
    <table border="1"  align="center" cellpadding="0" cellspacing="0">
        <tr>
            <th>ID</th>
            <th>Name</th>
            <th>URL</th>
            <th>章节选择器</th>
            <th>内容选择器</th>
            <th>操作</th>
        </tr>
        <tr th:each="e : ${list}">
            <td th:text="${e.getId()}"></td>
            <td th:text="${e.getName()}"></td>
            <td th:text="${e.getUrl()}"></td>
            <td th:text="${e.getTitleSelect()}"></td>
            <td th:text="${e.getContentSelect()}"></td>
            <td>
                &nbsp;<a th:href="@{/admin/addNovel(pid=${e.getId()})}">添加小说</a>&nbsp;<br/><br/>
                &nbsp;<a th:href="@{/admin/findNovel(pid=${e.getId()})}">小说列表</a>&nbsp;<br/><br/>
                &nbsp;<a th:href="@{/admin/deleteWeb(pid=${e.getId()})}">删除网站</a>&nbsp;
            </td>
        </tr>
    </table>
</body>
</html>